package com.manage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.manage.pojo.entity.CmSysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmLawyerMapper extends BaseMapper<CmSysUser> {
    // 查询所有律师列表
    List<CmSysUser> selectLawyerList();

    // 根据ID查询律师详情
    CmSysUser selectLawyerById(@Param("id") Long id);

//    // 更新律师状态
//    int updateLawyerStatus(@Param("id") Long id, @Param("status") Integer status);

    // 重置律师密码
    int resetLawyerPassword(@Param("id") Long id, @Param("password") String password);

    // 逻辑删除律师
    int deleteById(@Param("id") Long id);
}